﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChholConfig {
	public class ComPortDesc {
		public readonly string id;
		public string info;
		public bool avaliable;
		public string warning;
		public ComPortDesc(string id) {
			this.id = id;
		}
		override public string ToString() {
			if(avaliable) {
				return $"✔{id}-{info}";
			} else {
				return $"【{warning}】{id}-{info}";
			}
		}

	}
}
